package ae.pcfc.cldos.online.common.delegate.provider;

import ae.pcfc.cldos.online.common.delegate.BaseDelegate;
import ae.pcfc.cldos.online.common.delegate.EntryPermitPaymentDelegate;
import ae.pcfc.cldos.online.common.exception.BadAppException;
import ae.pcfc.cldos.online.common.exception.FNPAppException;
import ae.pcfc.cldos.online.common.facade.EntryPermitPaymentFacade;
import ae.pcfc.cldos.online.common.vo.UserVO;
import ae.pcfc.cldos.online.common.vo.ep.peyment.EntryPermitPaymentInfoVO;
import ae.pcfc.cldos.online.common.vo.ep.peyment.PaymentAdviceRequestVO;

/**
 * 
 * @author arosa
 *
 */
public class EntryPermitPaymentDelegateImpl extends BaseDelegate implements EntryPermitPaymentDelegate {
	
	public EntryPermitPaymentInfoVO getEntryPermitPaymentInfoByAppId(UserVO userVO, String appId) throws BadAppException,FNPAppException{
		return getServiceLocator().getFacadeService(EntryPermitPaymentFacade.class)
				.getEntryPermitPaymentInfoByAppId(userVO, appId);
	}
	
	public boolean completePayment(
			PaymentAdviceRequestVO paymentAdviceRequestVO) throws Exception{
		return getServiceLocator().getFacadeService(EntryPermitPaymentFacade.class)
				.completePayment(paymentAdviceRequestVO);
	}
}
